// 导入重置样式
@import 'normalize.css/normalize.css';

// 全局样式
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: $font-family;
  font-size: $font-size-md;
  color: $text-color;
  background-color: $background-color;
  line-height: 1.6;
}

// 基础样式
a {
  color: $primary-color;
  text-decoration: none;
  @include transition(color);

  &:hover {
    color: darken($primary-color, 10%);
  }
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

// 自定义滚动条
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;

  &:hover {
    background: #aaa;
  }
}
